const webpack = require('webpack')
const path = require('path')

module.exports = {
    entry: {
        app: './src/pageA'
    },
    output: {
        filename: '[name].bundle.js',
        chunkFilename: '[name].chunk.js',
        path: path.join(__dirname, '/dist')
    },
    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            name: 'vendor',
            minChunks: Infinity
        }),
        // new webpack.optimize.CommonsChunkPlugin({
        //     name: 'runtime',
        //     filename: '[name].js',
        //     chunks: ['vendor']
        // }),
    ]
}